﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessLayer.RegInfo.Entities
{
    public class Marketing
    {
        public int MarketingID { get; set; }
        public string Code { get; set; }
        public string Title { get; set; }
        public int MarketingCatID { get; set; }
        public DateTime FromDate { get; set; }
        public DateTime ToDate { get; set; }
        public int Status { get; set; }
        public int SubscriptionID { get; set; }
        public DateTime CreatedAt { get; set; }
        public DateTime LastUpdatedAt { get; set; }
        public string CreatedBy { get; set; }
        public string LastUpdatedBy { get; set; }
        public string Contents { get; set; }

    }
    public class MarketingFullInfo : Marketing
    {
        public string CategoryCode { get; set; }
        public string CategoryTitle { get; set; }
        public string SubscriptionCode { get; set; }
        public int SubscriptionNumberOfDays { get; set; }
        public string SubscriptionTitle { get; set; }
        public string CouponCode { get; set; }
        /// <summary>
        /// Hold info about discount of MarketingCoupon
        /// </summary>
        public decimal CouponDiscount { get; set; }
        /// <summary>
        /// Hold info about discount of MarketingDiscount
        /// </summary>
        public decimal Discount { get; set; }

    }
    public class MarketingCoupon : Marketing
    {
        public string CouponCode { get; set; }
        public decimal CouponDiscount { get; set; }
    }
    public class MarketingDiscount : Marketing
    {
        public decimal Discount { get; set; }
    }
}
